package cn.edu.cimv.dao.mapper;

import cn.edu.cimv.dao.entity.Patent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 门铎 on 2016/6/27.
 */
@Repository
public interface PatentMapper {
    //insert专利
    void insertPatent(@Param("patent") Patent patent);
    //update专利
    void updatePatent(@Param("patent") Patent patent);
    //delete专利
    void deletePatent(@Param("id") int id);
    //查专利列表
    List<Patent> queryPatent();
    //根据ID查单专利
    Patent queryPatentById(@Param("id") int id);
    //查询最新专利4条
    List<Patent> queryPatentLast(@Param("patentCount") int patentCount);
}
